package com.kevin.nettyrpcconsumer;

import com.kevin.nettyrpcapi.api.IUserService;
import com.kevin.nettyrpcapi.pojo.User;
import com.kevin.nettyrpcconsumer.proxy.RpcClientProxy;

/**
 * @Author LXL
 * @Date 2021/9/28 11:06
 **/
public class ClientBootStrap {
    public static void main(String[] args) {
        IUserService userService = (IUserService) RpcClientProxy.createProxy(IUserService.class);
        User user = userService.getById(2);
        System.out.println(user);
    }
}
